package org.bambrikii.site.base.struts2.core.beans;

import org.bambrikii.site.base.business.managers.ManagerContainer;

public class ManagerContainerBean {
	private ManagerContainer managerContainer;

	public ManagerContainerBean(ManagerContainer managerContainer) {
		this.managerContainer = managerContainer;
	}

	public ManagerContainerBean(String cfg) {
		managerContainer = new ManagerContainer(cfg);
	}

	public ManagerContainer getManagerContainer() {
		return managerContainer;
	}

	public void setManagerContainer(ManagerContainer managerContainer) {
		this.managerContainer = managerContainer;
	}

	public void init() {
		this.managerContainer.open();
	}

	public void destroy() {
		managerContainer.close();
		managerContainer = null;
	}
}
